package com.homeworkp8.Point;


//9.设计一个Point类，其x和y坐标可以通过构造器提供。提供一个子类LabeledPoint
//其构造器接收一个标签值和x，y坐标，
// 比如:new LabeledPoint(“Black Thursday”, 1929,230.07),写出对应的构造器即可
public class Point {
    private String info;
    private double x;  //1929
    private double y;


    public Point(String info, double x, double y) {
        this.info = info;
        this.x = x;
        this.y = y;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public double getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void print() {
        System.out.println(info + "\t" + x + "\t" + y);
    }

}
